package org.phantom.demo.server.http;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("http")
public class HttpServerController {
	@RequestMapping
	public ResponseEntity<String> test(String msg){
		return new ResponseEntity<String>(String.format("request received!The message is %s",msg),HttpStatus.OK);
	}
}
